package com.example.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("user_own")
public class UserOwn {
    @TableId(value="user_own_id",type= IdType.AUTO)
    private Integer userOwnId;

    @TableField("user_id")
    private Integer userId;

    @TableField("product_id")
    private Integer productId;

    @TableField("obtained_time")
    private String obtainedTime;

    @TableField("validity_period")
    private int validityPeriod;

    @TableField("expiration_date")
    private String expirationDate;

    @TableField("redemption_time")
    private String redemptionTime;

    @TableField("product_name")
    private String productName;

    @TableField("product_Image")
    private  String productImage;

    @TableField("cancelled")
    private boolean cancelled;

}
